package br.com.plenarionews.factory;

import br.com.plenarionews.model.enums.ExtratorAlgorithm;
import br.com.plenarionews.service.strategy.ExtratorDados;
import br.com.plenarionews.service.strategy.ExtratorDadosCamaraFederal;
import br.com.plenarionews.service.strategy.ExtratorDadosSenado;

public class ExtratorFactory {
	
	public static ExtratorDados createExtrator(ExtratorAlgorithm algorithm) {
		ExtratorDados extrator = null;
		
		switch (algorithm) {
		case SENADO:
			extrator = new ExtratorDadosSenado();
			break;
		case CAMARA_FEDERAL:
			extrator = new ExtratorDadosCamaraFederal();
			break;
		default:
			extrator = new ExtratorDadosSenado();
			break;
		}
		
		return extrator;
	}
	
}
